<!-- table列表数据显示  -->
@forelse  ($list as $k=>$v)
    @inject('CommonPresenter','App\Presenters\CommonPresenter');
    <tr>
        <td>
            @component('component/checkbox',['checkbox'=>[''],'data_value'=>$v['id'],'name'=>['check_ids'],'custom_class'=>"checkone checkbox"])
            @endcomponent
        </td>
		<td>{{$v['username']}}</td>
		<td>{{$v['password']}}</td>
		<td>{{$v['mobile']}}</td>
		<td>{{$v['nickname']}}</td>
		<td>{{$v['email']}}</td>
		<td>{{$v['check_status']}}</td>
		<td>
            @component('component/switch',['field'=>'status','value' => $v['status'],'data_id' => $v['id'],'data_url'=>URL::asset('/demo/update')])
            @endcomponent
        </td>
        <td>{{$CommonPresenter->exchangeTime($v['created_at'])}}</td>
		<td>
		<p >
            <span class="oa_operate op_tbl btn-dialog" data-area="['65%', '70%']" data-url="{{URL::asset('/demo/form')}}?id={{$v['id']}}" data-title = "编辑">编辑</span>
            <span class="btn-del oa_operate op_tbl" data-url="{{URL::asset('/demo/del')}}/{{$v['id']}}" data-title="删除记录" data-text="您确认要删除此记录吗?" style="color:red !important;">删除</span>

        </p>
		</td>
    </tr>
    @empty
    <tr>
        <td colspan=9>暂无记录</td>
    </tr>
@endforelse
